package cn.gxa.j229.bug.finance.mapper;

import cn.gxa.j229.bug.finance.pojo.LoanUser;

import java.util.List;
import java.util.Map;

public interface LoanUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LoanUser record);

    int insertSelective(LoanUser record);

    List<Map<String,String>> selectByPrimaryKey(Integer page, Integer limit);
    int selectByPrimaryKeyCount(Integer page, Integer limit);

//    使用电话号码搜索
    List<Map<String,String>> selectPhone(String phone);
    List<Map<String,String>> selectLikeName(LoanUser loanUser);
    int selectLikeNameCount(LoanUser loanUser);
    //搜索用户名
//    String username,String phone,Integer sock,Integer page, Integer limit
    List<Map<String,String>> selectName(LoanUser loanUser);
    int selectNameCount(LoanUser loanUser);
    List<Map<String,String>> selectSock(LoanUser loanUser);
    int selectSockCount(LoanUser loanUser);

    int update(LoanUser record);

    int updateByPrimaryKey(LoanUser record);
}